package searchteam.client.ui.commands;

import searchteam.client.services.SearchTeamServicesAsync;
import searchteam.client.ui.callbacks.getAllTeamsCallback;
import searchteam.client.ui.widgets.DataPanel;

public class getAllTeamsCommand implements Command {

	private SearchTeamServicesAsync searchTeamServicesAsync;
	
	public getAllTeamsCommand(SearchTeamServicesAsync searchTeamServicesAsync) {
		this.searchTeamServicesAsync = searchTeamServicesAsync;
	}
	
	public void execute(DataPanel dataPanel) {
		searchTeamServicesAsync.getAllTeams(new getAllTeamsCallback(dataPanel));
	}

}
